'use strict';
module.exports = app => {
  const { STRING, INTEGER, BOOLEAN, TEXT } = app.Sequelize;

  const MallShop = app.model.define('mall_shop', {
    shop_name: {
      type: STRING,
      comment: '商铺名称',
    },
    user_id: {
      type: INTEGER,
      allowNull: false,
      comment: '用户id',
    },
    introduce: {
      type: STRING,
      comment: '商铺介绍',
    },
    avatar: {
      type: TEXT,
      comment: '头像',
    },
    status: {
      type: BOOLEAN, // 布尔
      allowNull: false,
      defaultValue: 1, // 设置默认值
      comment: '是否启用 1 true ｜ 0 false',
    },

  });


  return MallShop;
};
